package com.mhz.db;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Demo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("1", "11");
		map.put("2", "22");
		map.put("3", "33");
		Map<String, Object> map2=new HashMap<String, Object>();
		map.put("1", "1111");
		map2.putAll(map);
		Set<Map.Entry<String,Object>> eSet=map2.entrySet();
		System.out.println("size:"+eSet.size());
		for(Map.Entry<String,Object> s :eSet){
			System.out.println("key:"+s.getKey());
			System.out.println("value:"+s.getValue());
		}
		
	}

}
